home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ For TASM
/
USRGUIDE.PAK
/
ENVSTR.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-02-21
|
505b
|
21 lines
{ Turbo Assembler example. Copyright (c) 1993 By Borland International, Inc. }
{ Use with envstr.asm }
program EnvTest;
{ program looks for environment strings }
var
EnvVariable : string;
EnvValue : string;
function EnvString(s:string) : string; far; external;
{$L ENVSTR.OBJ}
begin
EnvVariable := 'PROMPT';
EnvValue := EnvString(EnvVariable);
if EnvValue='' then EnvValue := '*** not found ***';
Writeln('Environment Variable:',EnvVariable,'Value:',EnvValue);
end.